<?php echo $header; ?>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<div class="box">
  <div class="left"></div>
  <div class="right"></div>
<div class="heading">
   <h1 style="background-image: url('view/image/module.png');"><?php echo $heading_title; ?></h1>
    <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo $button_save; ?></span></a><a onclick="location='<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a></div>
</div>
 <div class="content">
 <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
  <div id="tab_general" class="page">
    <table class="form">
         <tr>
        <td><?php echo $entry_limit; ?></td>
        <td><input type="text" name="tagcloud_limit" value="<?php echo $tagcloud_limit; ?>" size="1" />
		<?php if ($error_limit) { ?>
           <div class="error"><?php echo $error_limit; ?></div>
        <?php } ?>	
	</td>
      </tr>
         <tr>
        <td><?php echo $entry_min_font_size; ?></td>
        <td><input type="text" name="tagcloud_min_font_size" value="<?php echo $tagcloud_min_font_size; ?>" size="1" />px</td>
      </tr>
         <tr>
        <td><?php echo $entry_max_font_size; ?></td>
        <td><input type="text" name="tagcloud_max_font_size" value="<?php echo $tagcloud_max_font_size; ?>" size="1" />px</td>
      </tr>
      <tr>
        <td width="25%"><?php echo $entry_position; ?></td>
        <td><select name="tagcloud_position">
            <?php if ($tagcloud_position == 'left') { ?>
            <option value="left" selected="selected"><?php echo $text_left; ?></option>
            <?php } else { ?>
            <option value="left"><?php echo $text_left; ?></option>
            <?php } ?>
            <?php if ($tagcloud_position == 'right') { ?>
            <option value="right" selected="selected"><?php echo $text_right; ?></option>
            <?php } else { ?>
            <option value="right"><?php echo $text_right; ?></option>
            <?php } ?>
          </select></td>
      </tr>
      <tr>
        <td><?php echo $entry_status; ?></td>
        <td><select name="tagcloud_status">
            <?php if ($tagcloud_status) { ?>
            <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
            <option value="0"><?php echo $text_disabled; ?></option>
            <?php } else { ?>
            <option value="1"><?php echo $text_enabled; ?></option>
            <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
            <?php } ?>
          </select></td>
      </tr>
      <tr>
	<td><?php echo $entry_font_function; ?></td>
	<td><select name="tagcloud_font_function">
	    <?php if ($tagcloud_font_function) { ?>
	    <option value="1" selected="selected"><?php echo $text_no_products; ?></option>
	    <option value="0"><?php echo $text_random; ?></option>
	    <?php } else { ?>
	    <option value="1"><?php echo $text_no_products; ?></option>
	    <option value="0" selected="selected"><?php echo $text_random; ?></option>
	    <?php } ?>
	  </select></td>
      </tr>
      <tr>
        <td><?php echo $entry_sort_order; ?></td>
        <td><input type="text" name="tagcloud_sort_order" value="<?php echo $tagcloud_sort_order; ?>" size="1" />
	   <?php if ($error_sort_order) { ?>
           <div class="error"><?php echo $error_sort_order; ?></div>
        <?php } ?>	
	</td>
      </tr>
        <tr>
            <td style="vertical-align: middle;"><?php echo $entry_credit; ?></td>
	    <td style="vertical-align: middle;"><a href="http://www.siamopencart.com/" target="_blank">SiamOpencart.com</a></td>
       </tr>
       <tr>
        <td style="vertical-align: middle;"><?php echo $entry_credit; ?></td>
	<td style="vertical-align: middle;"><a href="http://www.thaiopencart.com/" target="_blank">ThaiOpencart.com</a></td>
      </tr>
       <tr>
        <td style="vertical-align: middle;"><?php echo $entry_credit; ?></td>
	<td style="vertical-align: middle;"><a href="http://spotonsolutions.net/" target="_blank">SpotOnSolutions.net</a></td>
      </tr>
    </table>
  </div>
</form>
  </div>
</div>
<script type="text/javascript"><!--
$.tabs('.tabs a');
//--></script>
